package com.lxit.cms.action.admin.assist.cn.msg;
/**
 * 
 * @desc: Submit消息结构定义
 * @project:蓝杰中国移动Cmpp短信网关项目开发 Jun 18, 2009
 * @author: 蓝杰www.netjava.cn
 */
public class MsgSubmit extends MsgHead{
	 
	 private long      msg_Id       =0           ;
	 private byte      pk_total  =1              ;
	 private byte      pk_number   =1            ;
	 private byte      registered_Delivery=0     ;
	 private byte      msg_level     =0          ;
	 private String      service_Id   ="test"           ;
	 private byte      fee_UserType    =0;//谁接收，计谁的费
	 private String      fee_terminal_Id =""        ;
	 private byte      fee_terminal_type    =0   ;
	 private byte      tP_pId      =0            ;
	 private byte      tP_udhi       =0          ;
	 private byte      msg_Fmt         =15        ;
	 private String      msg_src                 ;
	 //01：对“计费用户号码”免费；
	// 02：对“计费用户号码”按条计信息费；
	// 03：对“计费用户号码”按包月收取信息费

	 private String      feeType    ="02"   ;//默认为按条
	 private String      feeCode   ="000000"              ;
	 private String      valId_Time  =""  ;//暂不支持
	 private String      at_Time  =""  ;//暂不支持
	 //SP的服务代码或前缀为服务代码的长号码, 网关将该号码完整的填到SMPP协议Submit_SM消息相应的source_addr字段，该号码最终在用户手机上显示为短消息的主叫号码。
	 private String      src_Id   ;
	 private byte      destUsr_tl =1;//不支持群发
	 private String      dest_terminal_Id ;//接收手机号码，
	 private byte      dest_terminal_type =0  ;//真实号码
	 private byte      msg_Length              ;
	 private String      msg_Content             ;
	 //点播业务使用的LinkID，非点播类业务的MT流程不使用该字段
	 private String      linkID="linkid"+System.currentTimeMillis()               ;
	//以下为对应的getter/Setter方法
	 private int sendResult=-1;//收到应答的结果
	 
 
	 public String toString(){
		  StringBuffer stb=new StringBuffer();
		  stb.append(super.toString());
		  stb.append("\r\nsubmit:msg_Id:"+msg_Id);
		  stb.append("dest_terminal_Id:"+dest_terminal_Id);
		  stb.append("msg_Content:"+msg_Content);
		  return stb.toString();
	  }
	 
	 
	public long getMsg_Id() {
		return msg_Id;
	}
	public void setMsg_Id(long msg_Id) {
		this.msg_Id = msg_Id;
	}
	public byte getPk_total() {
		return pk_total;
	}
	public void setPk_total(byte pk_total) {
		this.pk_total = pk_total;
	}
	public byte getPk_number() {
		return pk_number;
	}
	public void setPk_number(byte pk_number) {
		this.pk_number = pk_number;
	}
	public byte getRegistered_Delivery() {
		return registered_Delivery;
	}
	public void setRegistered_Delivery(byte registered_Delivery) {
		this.registered_Delivery = registered_Delivery;
	}
	public byte getMsg_level() {
		return msg_level;
	}
	public void setMsg_level(byte msg_level) {
		this.msg_level = msg_level;
	}
	public String getService_Id() {
		return service_Id;
	}
	public void setService_Id(String service_Id) {
		this.service_Id = service_Id;
	}
	public byte getFee_UserType() {
		return fee_UserType;
	}
	public void setFee_UserType(byte fee_UserType) {
		this.fee_UserType = fee_UserType;
	}
	public String getFee_terminal_Id() {
		return fee_terminal_Id;
	}
	public void setFee_terminal_Id(String fee_terminal_Id) {
		this.fee_terminal_Id = fee_terminal_Id;
	}
	public byte getFee_terminal_type() {
		return fee_terminal_type;
	}
	public void setFee_terminal_type(byte fee_terminal_type) {
		this.fee_terminal_type = fee_terminal_type;
	}
	public byte getTP_pId() {
		return tP_pId;
	}
	public void setTP_pId(byte id) {
		tP_pId = id;
	}
	public byte getTP_udhi() {
		return tP_udhi;
	}
	public void setTP_udhi(byte tp_udhi) {
		tP_udhi = tp_udhi;
	}
	public byte getMsg_Fmt() {
		return msg_Fmt;
	}
	public void setMsg_Fmt(byte msg_Fmt) {
		this.msg_Fmt = msg_Fmt;
	}
	public String getMsg_src() {
		return msg_src;
	}
	public void setMsg_src(String msg_src) {
		this.msg_src = msg_src;
	}
	public String getFeeType() {
		return feeType;
	}
	public void setFeeType(String feeType) {
		this.feeType = feeType;
	}
	public String getFeeCode() {
		return feeCode;
	}
	public void setFeeCode(String feeCode) {
		this.feeCode = feeCode;
	}
	public String getValId_Time() {
		return valId_Time;
	}
	public void setValId_Time(String valId_Time) {
		this.valId_Time = valId_Time;
	}
	public String getAt_Time() {
		return at_Time;
	}
	public void setAt_Time(String at_Time) {
		this.at_Time = at_Time;
	}
	public String getSrc_Id() {
		return src_Id;
	}
	public void setSrc_Id(String src_Id) {
		this.src_Id = src_Id;
	}
	public byte getDestUsr_tl() {
		return destUsr_tl;
	}
	public void setDestUsr_tl(byte destUsr_tl) {
		this.destUsr_tl = destUsr_tl;
	}
	public String getDest_terminal_Id() {
		return dest_terminal_Id;
	}
	public void setDest_terminal_Id(String dest_terminal_Id) {
		this.dest_terminal_Id = dest_terminal_Id;
	}
	public byte getDest_terminal_type() {
		return dest_terminal_type;
	}
	public void setDest_terminal_type(byte dest_terminal_type) {
		this.dest_terminal_type = dest_terminal_type;
	}
	public byte getMsg_Length() {
		return msg_Length;
	}
	public void setMsg_Length(byte msg_Length) {
		this.msg_Length = msg_Length;
	}
	public String getMsg_Content() {
		return msg_Content;
	}
	public void setMsg_Content(String msg_Content) {
		this.msg_Content = msg_Content;
	}
	public String getLinkID() {
		return linkID;
	}
	public void setLinkID(String linkID) {
		this.linkID = linkID;
	}
	public int getSendResult() {
		return sendResult;
	}
	public void setSendResult(int sendResult) {
		this.sendResult = sendResult;
	}
	    
	  
}
